<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace Utils;
require_once __DIR__."/../Model/Sign.php";
use Model\Sign;
/**
 * Description of RequstUtils
 *
 * @author Administrator
 */
class SignUtils {
    public static function add($array){
        $m=new Sign((Array)json_decode($array));
        if($m->insert())
            return array("code"=>200);
        else
            return array("code"=>400);
    }
}